package cn.crex1.netty.server;

import java.util.Scanner;

public class App2 {

    public static void main(String[] args) {
        byte[] req = ("AAAAAAAAAAAAAAAA"
                +"  BBBBBBBBBBBBBBBB "
                +"	CCCCCCCCCCCCCCCCC"
                +"	DDDDDDDDDDDDD"
                +"	EEEEEEEEEEEEEE"
                +"  FFFFFFFFFFFFFF"
                +"	GGGGGGGGGGGG ~_~"
                +"	HHHHHHHHHHHHHHHH"
                +"	IIIIIIIIIIIIII"
                +"	JJJJJJJJJJJJJJJJJJJ"
                +"	KKKKKKKKKKKKKKKKK"
                +"	LLLLLLLLLLLLLLLLL"
                +"	MMMMMMMMMMMMMMMMMM ~_~"
                +"	NNNNNNNNNNNNNNNN"
                +"	OOOOOOOOOOOOOOOOOOOO"
                +"	PPPPPPPPPPPPPP"
                +"	QQQQQQQQQQQQQQQQQQQQ"
                +"	RRRRRRRRRRRRRR ~_~"
                +" SSSSSSSSSSSSSSSSS"
                +" TTTTTT ~_~ TTTTTTT"+System.getProperty("line.separator")).getBytes();
        final Scanner scanner = new Scanner(System.in);
        Client1 client1 = new Client1();
        client1.start();
//        client1.send("1111111111111111");
        System.out.println("发送消息");
        while (scanner.hasNext()) {
            String msg = scanner.next();
            client1.send(new String(req));
            client1.send(msg);
        }

    }
}
